package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 设备表
 *
 * @author code-generate
 * @date 2021-08-30
 */
@Data
@DbTable(tableName = "t_gps_device")
public class GpsDevice extends BaseEntity {
    /**
     * GPS设备号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    private String code ;

    /**
     * SIM卡号
     */
    @DbTableField(columnName = "c_sim_code", dbType = DbTypeEnum.VARCHAR)
    private String simCode ;

    /**
     * 使用年限(年)
     */
    @DbTableField(columnName = "c_can_use_year", dbType = DbTypeEnum.INTEGER)
    private Integer canUseYear ;

    /**
     * 厂家名称
     */
    @DbTableField(columnName = "c_manufacturers", dbType = DbTypeEnum.VARCHAR)
    private String manufacturers ;

    /**
     * 厂家联系人
     */
    @DbTableField(columnName = "c_manufacturers_contact_person", dbType = DbTypeEnum.VARCHAR)
    private String manufacturersContactPerson ;

    /**
     * 厂家联系人		 厂家联系电话
     */
    @DbTableField(columnName = "c_manufacturers_contact_phone", dbType = DbTypeEnum.VARCHAR)
    private String manufacturersContactPhone ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    private String remark ;

    /**
     * 排序号
     */
    @DbTableField(columnName = "c_sort_id", dbType = DbTypeEnum.SMALLINT)
    private Short sortId ;

    /**
     * 排序号		 接入方式
     */
    @DbTableField(columnName = "c_join_type", dbType = DbTypeEnum.INTEGER)
    private Integer joinType ;

    /**
     * 设备品牌
     */
    @DbTableField(columnName = "c_brand", dbType = DbTypeEnum.VARCHAR)
    private String brand ;

    /**
     * 套餐到期日期
     */
    @DbTableField(columnName = "c_due_date", dbType = DbTypeEnum.DATE)
    private LocalDate dueDate ;

    /**
     * 设备类型
     */
    @DbTableField(columnName = "c_device_type", dbType = DbTypeEnum.INTEGER)
    private Integer deviceType ;

    /**
     * 设备类型名称
     */
    @DbTableField(columnName = "c_device_type_name", dbType = DbTypeEnum.VARCHAR)
    private String deviceTypeName ;

    /**
     * SIM卡开卡日期
     */
    @DbTableField(columnName = "c_sim_begin_date", dbType = DbTypeEnum.DATE)
    private LocalDate simBeginDate ;

    /**
     * 使用状态
     */
    @DbTableField(columnName = "c_use_state", dbType = DbTypeEnum.INTEGER)
    private Integer useState ;

    /**
     * 管理部门
     */
    @DbTableField(columnName = "c_manager_dept", dbType = DbTypeEnum.INTEGER)
    private Integer managerDept ;

    /**
     *
     */
    @DbTableField(columnName = "c_map", dbType = DbTypeEnum.INTEGER)
    private Integer map ;

    /**
     * 创建id
     */
//    @DbTableField(columnName = "c_db_create_id", dbType = DbTypeEnum.INTEGER)
    private Integer dbCreateId ;

    /**
     * 创建日期
     */
//    @DbTableField(columnName = "c_db_create_date", dbType = DbTypeEnum.TIMESTAMP)
    private LocalDateTime dbCreateDate ;

    /**
     * 修改日期
     */
//    @DbTableField(columnName = "c_db_last_update_date", dbType = DbTypeEnum.TIMESTAMP)
    private LocalDateTime dbLastUpdateDate ;

    /**
     * 修改id
     */
//    @DbTableField(columnName = "c_db_last_update_id", dbType = DbTypeEnum.INTEGER)
    private Integer dbLastUpdateId ;

    /**
     * 使用状态
     */
    @DbTableField(columnName = "c_company_device_id", dbType = DbTypeEnum.VARCHAR)
    private String companyDeviceId ;
}
